package com.xunk.scene.handler;

import lombok.NoArgsConstructor;

import javax.naming.OperationNotSupportedException;
import java.util.List;

/**
 * @ProjectName: HIM
 * @Package: com.xunk.scene.handler
 * @ClassName: ConditionWrapper
 * @Author: luanzhiwei
 * @Description: 条件包装器
 * @Date: 2021/5/11 9:32
 * @Version: 1.0
 */
@NoArgsConstructor
public class DefaultConditionHandler implements IConditionHandler {


    /**
     * 添加子元素
     *
     * @param component
     */
    public void add(IConditionHandler component) throws OperationNotSupportedException {
        throw new OperationNotSupportedException();
    }

    /**
     * 添加子元素集合
     *
     * @param components
     */
    public void addAll(List<IConditionHandler> components) throws OperationNotSupportedException {
        throw new OperationNotSupportedException();
    }

    /**
     * 删除子元素
     *
     * @param component
     */
    public void remove(IConditionHandler component) throws OperationNotSupportedException {
        throw new OperationNotSupportedException();
    }

    /**
     * 判断条件是否满足
     *
     * @param oneMatchFlag true满足一条即可，false 需全部满足
     * @return
     * @throws OperationNotSupportedException
     */
    @Override
    public boolean match(boolean oneMatchFlag) throws OperationNotSupportedException {
        throw new OperationNotSupportedException();
    }

}
